Skip to content

Fix #4157: Broken error message when trying to eta-expand #4159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 23, 2018

Conversation

smarter
Copy link
Member

@smarter smarter commented Mar 22, 2018

Avoid leaking error types in the printed error messages

@smarter smarter force-pushed the fix-4157 branch 3 times, most recently from 7c92c83 to e0684b0 Compare March 23, 2018 12:52
@smarter smarter requested a review from allanrenucci March 23, 2018 12:53
Copy link
Contributor

@allanrenucci allanrenucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

@@ -72,3 +72,11 @@ scala> val a: iDontExist = 1
1 | val a: iDontExist = 1
| ^^^^^^^^^^
| not found: type iDontExist
scala> def foo1(x: => Int) = x _
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would make it an error message test instead. They are less fragile

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I really want to know what the exact output is here :). Can you help me figure out why the test doesn't pass?

Avoid leaking error types in the printed error messages
@smarter smarter merged commit eacb5af into scala:master Mar 23, 2018
@allanrenucci allanrenucci deleted the fix-4157 branch March 23, 2018 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants